package org.example.maven.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ClassificationSubTree {
    private String value;
    private String label;
    private List<ClassificationTree> children;
    // 带参构造器（推荐）
    public ClassificationSubTree(String value, String label) {
        this.value = value;
        this.label = label;
        this.children = new ArrayList<>();
    }
    // 添加子节点的便捷方法

}
